package com.petshop.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.petshop.pojo.Address;
import com.petshop.utils.Result;

/**
 * @author 20289
 * @description 针对表【address】的数据库操作Service
 * @createDate 2025-03-10 14:57:29
 */
public interface AddressService extends IService<Address> {

    /**
     * 新增一条地址信息
     *
     * @param address
     * @param token
     * @return
     */
    Result insertAddress(Address address, String token);

    /**
     * 删除地址信息
     *
     * @param addressId
     * @return
     */
    Result deleteAddress(Integer addressId);

    /**
     * 修改地址信息
     *
     * @param address
     * @return
     */
    Result updateAddress(Address address);

    /**
     * 查询所有地址信息
     *
     * @param token
     * @return
     */
    Result queryAddress(String token);

    /**
     * 根据id查询单个地址信息
     *
     * @param addressId
     * @param token
     * @return
     */
    Result queryOneAddress(Integer addressId);
}
